import { handleActions } from 'redux-actions'

export const homePage = handleActions(
    {
        // 这里的SET_LIST配置和action中的要一致
        SET_LIST: (state, action) => {
            console.log(action)
            return({
            ...state,
            list: action.payload
        })},
    },
    {
        list: [{ text: '默认的redux值' }]
    }
)
